package ltd.newbee.mall.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.util.Date;

@Data
@TableName("tb_newbee_mall_carousel")
public class Carousel {
    @TableField(value = "carousel_id", jdbcType = JdbcType.BIGINT)
    private Integer carouselId;

    @TableField(value = "carousel_url", jdbcType = JdbcType.VARCHAR)
    private String carouselUrl;

    @TableField(value = "redirect_url", jdbcType = JdbcType.VARCHAR)
    private String redirectUrl;

    @TableField(value = "carousel_rank", jdbcType = JdbcType.INTEGER)
    private Integer carouselRank;

    @TableField(value = "is_deleted", jdbcType = JdbcType.TINYINT)
    private Byte isDeleted;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @TableField(value = "create_user", jdbcType = JdbcType.INTEGER)
    private Integer createUser;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "update_time", jdbcType = JdbcType.TIMESTAMP)
    private Date updateTime;

    @TableField(value = "update_user", jdbcType = JdbcType.INTEGER)
    private Integer updateUser;
}
